-
Create a directory (e.g., demo_proj) for your project.
-
Run
gradle init --type scala-library
in terminal in the above directory. -
Import the directory as a Gradle project in IntelliJ.
IntelliJ如何导入Gradle项目
Apache Spark setup with Gradle, Scala and IntelliJ